﻿using TrackSystem.Entities.Extensions;

namespace TrackSystem.Entities.Attr
{
    /// <summary>
    /// 回路变量定义
    /// </summary>
    public static class LoopVarDefine
    {
        /// <summary>
        /// 属性变量初始化
        /// </summary>
        public static List<ParamsBase> attrs = new List<ParamsBase>
        {
            new (0,  "Enable",  "回路启用状态",false, DataTypeEnum.BOOLEAN),
            new (1,  "Manual",  "手动控制状态",false, DataTypeEnum.BOOLEAN),
            new (2,  "Dir",     "控制方向",      false, DataTypeEnum.BOOLEAN),
            new (3,  "P",       "比例系数",        false, DataTypeEnum.DOUBLE),
            new (4,  "I",       "积分系数",        false, DataTypeEnum.DOUBLE),
            new (5,  "D",       "微分系数",        false, DataTypeEnum.DOUBLE),
            new (6,  "ULmt",    "输出上限",     false, DataTypeEnum.DOUBLE),
            new (7,  "LLmt",    "输出下限",     false, DataTypeEnum.DOUBLE),
            new (8,  "Ratio",   "输出比例",    false, DataTypeEnum.DOUBLE),
            new (9,  "PDZone",  "正方向死区设定",   false, DataTypeEnum.INTEGER),
            new (10, "NDZone",  "负方向死区设定",  false, DataTypeEnum.INTEGER),
            new (11, "OP",      "输出值",        false, DataTypeEnum.DOUBLE),
            new (12, "SP",      "设定值",        false, DataTypeEnum.DOUBLE),
            new (13, "PV",      "过程值",        false, DataTypeEnum.DOUBLE),
            new (14, "EnabledAd","高级功能启用状态", false, DataTypeEnum.INTEGER),
            new (15, "DeltaP1",  "第一死区点",    false, DataTypeEnum.DOUBLE),
            new (16, "DeltaP2",  "第二死区点",    false, DataTypeEnum.DOUBLE),
            new (17, "AutoTuned","自动调节状态",false, DataTypeEnum.BOOLEAN),
            new (18, "Params",   "设置参数",    false, DataTypeEnum.STRING),
        };
    }
}

